/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IlluminationSensor {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020005';
    }

    get categoryName() {
        return '\u5149\u7167\u5f3a\u5ea6\u4f20\u611f\u5668';
    }

    getAlarmStatus(params) {
        return command({
            method: 'getAlarmStatus',
            methodId: 'pZgRtijA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIlluminationStrength(params) {
        return command({
            method: 'getIlluminationStrength',
            methodId: 'ppAXijDU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIlluminationThreshold(params) {
        return command({
            method: 'getIlluminationThreshold',
            methodId: 'pUPQOyTC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIlluminationThreshold(params) {
        return command({
            method: 'setIlluminationThreshold',
            methodId: 'peHyqOew',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IlluminationSensor;
